class MasterSlaveDBRouter(object):
    def db_for_read(self,*args,**kwargs):
        return "slave"

    def db_for_write(self,*args,**kwargs):
        return "default"

    def allow_relation(self,obj1,obj2,**hints):
        return True

